import java.net.InetAddress;


public class PosteServeur {
	
	/****************
	 *	ATRIBUTS	*
	 ****************/
	private String serverIP;
	private int serverPort;
	private String createur;
	private String type;
	private String mode;
	private int nbplace;
	private int nbplacedispo;
	
	/****************
	 *	ACCESSEURS	*
	 ****************/
	public String getServerIP() {return serverIP;}
	public int getServerPort() {return serverPort;}
	public String getCreateur() {return createur;}
	public String getType() {return type;}
	public String getMode() {return mode;}
	public int getNbplace() {return nbplace;}
	public int getNbplaceDispo() {return nbplacedispo;}
	
	/****************
	 *	MUTATEURS	
	 * @return *
	 ****************/
	public  void setServerIP(String string) {serverIP=string;}
	public  void setServerPort(int port) {serverPort=port;}
	public  void setCreateur(String creat) {createur=creat;}
	public  void setType(String type) {this.type=type;}
	public  void setMode(String mod) {mode=mod;}
	public  void setNbplace(int nb) {nbplace=nb;}
	public  void setNbplaceDispo(int nb) {nbplacedispo=nb;}
	/************************************
	 *	CONSTRUCTEUR AVEC PARAMETRES	*
	 ************************************/
	public PosteServeur(String IP, int port, String creator, String mode, String type, int place, int placedispo) {
		this.serverIP = IP;
		this.serverPort = port;
		this.createur = creator;
		this.type = type;
		this.mode = mode;
		this.nbplace = place;
		this.nbplacedispo = placedispo;
	}
	
	public String affichage(){
		String recap;
		
		recap=this.createur+"     "+this.type+"     "+this.getNbplaceDispo()+"/"+this.getNbplace();
		return recap;
	}
}
